//
//  USMediaUploadManager.h
//  us
//
//  Created by lhx on 2025/5/15.
//

#import <Foundation/Foundation.h>
#import "USPhotoModel.h"
 
NS_ASSUME_NONNULL_BEGIN

@interface USMediaUploadManager : NSObject


/// 相册上传图片视频
/// - Parameters:
///   - mediaList: 图片视频列表
///   - album: 相册
///   - progressHandler: 进度
///   - success: success
///   - failure: failure
 
+ (void)uploadImages:(NSArray<USMediaResult *> *)mediaList
 albumFirstDirectory:(NSString *)albumFirstDirectory
albumSecondDirectory:(NSString *)albumSecondDirectory
            progress:(void (^)(NSInteger current, NSInteger total))progressHandler
             success:(void (^)(NSArray<USPhotoModel *> *models))success
             failure:(void (^)(NSError *error))failure;


/// 上传单张图片
/// - Parameters:
///   - image: 图片
///   - progress: 进度
///   - success: success
///   - failure: failure
+ (void)uploadImageToCOS:(UIImage *)image
                progress:(void (^)(CGFloat progress))progress
                 success:(void (^)(NSString *cosUrl))success
                 failure:(void (^)(NSError *error))failure;
 
@end

NS_ASSUME_NONNULL_END
